package com.project.class3_29;

public class Car {
    /**车牌*/
    private String code;
    /**品牌*/
    private String type;
    /**颜色*/
    private String color;
    /**价格*/
    private int price;

    public Car(String code, String type, String color, int price) {
        this.code = code;
        this.type = type;
        this.color = color;
        this.price = price;
    }

    public Car() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Car{" +
                "code='" + code + '\'' +
                ", type='" + type + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +
                '}';
    }
}
